<template>
  <!-- 背景图 -->
  <div class="activity-rules" id="activity-rules">
    <img src="@/assets/images/activety_roule_bgc_fff@2x.png" style="width: 100%; height: 100%" />
    <div class="guize">
      <img src="@/assets/images/activety_roules_text.png" style="width: 93%" />
    </div>

    <div @click="handleClick" class="start-questions" type="default" />
  </div>
</template>

<script>
// import { reqregister } from '@/apis/home'
export default {
  name: 'ActivityRules',

  mounted() {
    document.getElementById('activity-rules').style.height = '' + window.screen.availHeight + 'px'
  },
  created() {
    // reqregister()
  },
  methods: {
    handleClick() {
      this.$router.push({
        path: '/question'
      })
    }
  }
}
</script>

<style lang="less">
.activity-rules {
  // position: relative;
  width: 100%;
  height: 90%;
  // height: 110vh;
  // background: url('@/assets/images/活动规则.png');
  // background-size: 100%;
  & .guize {
    position: absolute;
    width: 12rem;
    height: 17rem;
    left: 2rem;
    top: 7.5rem;
    background-size: 100%;
    overflow: scroll;
  }
  & .start-questions {
    position: absolute;
    bottom: 0;
    right: 8px;
    width: 7.28rem;
    height: 2.48rem;
    background: url('@/assets/images/答题按钮.png') no-repeat;
    // background-position: left top;
    background-size: 100%;
  }
}
</style>
